#include <iostream>
#include <string.h>
using namespace std;

class Person {
private:
    string name;
    int age;

public:
    Person(string name, int age) {
        cout << "在Person构造函数中\n";
        this->name = name;
        this->age = age;
        WritePerson();
        cout << "离开Person构造函数\n";
    }

    Person() {
        cout << "什么也不做的Person构造函数\n";
    }

    void WritePerson() {
        cout << name << " 年龄为 " << age << "\n";
    }

    ~Person() {
        cout << "销毁Person对象\n";
    }
};

int main() {
    Person somebody("Vincent", 29);
    cout << "\n没有人了\n";
}